﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tec2.GUI.Dialog;
using TecBaseObjects.Interfaces;
using TecData.Manager;

namespace Tec2.GUI.Controller {

    public class ProjectCaseContactsController : IController {

        #region Members

        private ProjectCaseContactsForm myForm;

        #endregion

        #region Constructor
        
        public ProjectCaseContactsController(ProjectCaseContactsForm form) {
            this.myForm = form;
        }
        
        #endregion

        #region Methods

        public void ButtonCancel(object sender, EventArgs e) {
            this.myForm.Close();
        }

        public void ButtonOK(object sender, EventArgs e) {
            this.myForm.Cancel = false;
            this.myForm.Close();
        }

        public void Dispose() {
        }

        public void LoadModels() {
            this.myForm.MyModel = ProjectCaseManager.LoadProjectCase(this.myForm.MyProjectID);
        }

        public void Save(IBaseObject myObject) {
            throw new NotImplementedException("ProjectCaseContactsController.Save");
        }

        #endregion

    }
}
